<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>向往的生活家—后台管理</title>
    <link rel="stylesheet" href="/css/x-admin.css">
    <link rel="stylesheet" href="/static/layui/css/layui.css"/>
    <link rel="stylesheet" href="/static/layer/skin/layer.css"/>
    <link rel="stylesheet" href="/css/font.css"/>
    <link rel="stylesheet" href="/css/common.css"/>
    <link rel="stylesheet" href="/css/curse.css"/>
    <link rel="stylesheet" href="/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/Sales_Report_personal.css"/>
    <link rel="stylesheet" href="/css/datetime.css"/>
    <link rel="stylesheet" href="/css/list.css"/>
    <link rel="stylesheet" href="/css/dateRange.css"/>
    <link rel="stylesheet" href="/css/gl.css"/>

    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/layui/layui.js"></script>
    <script type="text/javascript" src="/static/layer/layer.js"></script>
    <script type="text/javascript" src="/js/x-layui.js"></script>
    <script type="text/javascript" src="/js/xcity.js"></script>

    <script type="text/javascript" src="/js/bkwcrm.js"></script>
    <script type="text/javascript" src="/js/page.js?version=20171211"></script>
    <script type="text/javascript" src="/js/common.js"></script>
    <script type="text/javascript" src="/js/base.js"></script>
    <script type="text/javascript" src="/js/cookie.js"></script>

    <script type="text/javascript" src="/js/farmhouse/farmhouse-list.js?version=20181213"></script>
    <style>
        .layui-btn {
            line-height: 38px;
            padding: 0 10px;
        }

        xblock button {
            float: left;
        }

        tbody img {
            height: 20px;
        }

        .iconfont {
            font-size: 13px;
        }
        .basic_infor {
            width: 100%;
            height: 114px;
            background: #f6f6f6;
            border-top: 1px solid #f6f6f6;
            margin-bottom: 30px;
        }

        .basic_infor p {
            margin-top: 30px;
        }

        .basic_infor .sp1 {
            color: #666;
            font-size: 30px;
            font-weight: bold;
            margin-left: 25px;
        }

        .basic_infor .sp2 {
            color: #666;
            font-size: 14px;
            margin-left: 10px;
        }

        .basic_infor .sp2 i {
            color: #ff8800;
            margin: 0 3px;
            font-size: 14px;
        }

        .basic_p5 textarea {
            width: 580px;
            height: 80px;
            border: 1px solid #eee;
            color: #999;
            font-size: 14px;
            line-height: 22px;
            border-radius: 3px;
        }

        .layui-form-label {
            width: 100px;
        }
        .lincensefile input {
            float: left;
            font-family: 微软雅黑;
            cursor: pointer;
            color: rgb(75, 75, 75);
            padding-left: 2.5%;
            padding-right: 0%;
            height: 34px;
            margin: 5px 0px;
            border-width: 1px;
            border-style: solid;
            border-color: rgb(220, 220, 220);
            border-image: initial;
        }
        .lincensefile img{
            max-width: 250px;
            max-height: 250px;
        }
    </style>
</head>

<body>

<div class="x-body">
    <!-- 时间选择 -->
    <div style="margin-bottom:10px;border-bottom: 0px;padding-bottom: 0px;" class="nav_wrap_personal">
        <ul class="personal_nav_timetab select_time1">
            <li name="0" class="blue_color">今日</li>
            <li name="1">昨日</li>
            <li name="7">最近7日</li>
            <li name="30">最近30日</li>
            <li name="">全部</li>
        </ul>
        <div class="input_long_wrap">
            <div class="ta_date" id="div_date1" style="margin-right: -20px">
                <span class="date_title" id="date1">2017-10-25 - 2017-10-26</span>
            </div>
            <label class="contrast" for="needCompare_1508986225539" style="display: none;">
                <input type="checkbox" class="pc" name="needCompare_1508986225539"
                       id="needCompare_1508986225539" value="1" disabled="disabled">对比
            </label>
            <div class="ta_date" id="div_compare_date1" style="display: none;">
                <span name="dateCompare" id="date1Compare" class="date_title"
                      style="display: none;"></span>
                <a class="opt_sel" id="compare_trigger" href="javascript:void(0)">
                    <i class="i_orderd"></i>
                </a>
            </div>
            <label class="contrast" for="needCompare_1508756891010" style="display: none;">
                <input type="checkbox" class="pc" name="needCompare_1508756891010"
                       id="needCompare_1508756891010"
                       value="1" disabled="disabled">对比</label>
            <div class="ta_date" id="div_compare_date1" style="display: none;">
                <span name="dateCompare" id="date1Compare" class="date_title" style="display: none;"></span>
                <a class="opt_sel" id="compare_trigger" href="javascript:void(0)">
                    <i class="i_orderd"></i> </a>
            </div>
        </div>

        <!-- 搜索框 -->
        <div id="conditional_search" style="float: right; border: 0; font-size: 14px; line-height: 36px;"
             course_tiku_stlb_search="">
            <div class="titlist_wrap" style="margin-top: 0px;">
                <div class="curse_list">
                    <div class="titlist_wrap_tit  sousuo_border">
                        <span id="search_name" value="business_name">用户名查询</span>
                        <i class="titlisticon icon-angle-down"></i>
                    </div>
                    <ul class="curse_list_ul zq_ul ove"
                        style="max-height: 399px;display: none;">
                        <li value="business_name"><a><span class="show_tips">用户名查询</span></a></li>
                        <li value="business_tel"><a><span class="show_tips">电话查询</span></a></li>
                        <li value="farm_consume"><a><span class="show_tips">人均消费查询</span></a></li>
                    </ul>
                </div>
            </div>
            <div class="newBtn_Right">
                <input class="newBtn_Right_input newBtn_Right_inputs" id="conditional_searchinput"
                       name="" value=""
                       placeholder="请输入用户名">
                <a class="newBtn_Right_a" onclick="addgoods()"><i class="icon-search"></i> </a>
                <div style="clear: both;"></div>
            </div>
        </div>
        <div style="clear:both;"></div>
    </div>

    <xblock>
    </xblock>

    <table class="layui-table">
        <thead>
        <tr>
            <th style="width: 8%;">
                <div class="curse_list table_ulwrap">
                    <div class="titlist_wrap_tit_table my_clienttable">
                        <span class="farm_type_select" id="farm_type_name">农家类型</span>
                        <i class="icon-angle-down tittalecon"></i>
                    </div>
                    <ul class="table_ul my_select_ul farm_Mertype" id="farm_type_ul">
                    </ul>
                </div>
            </th>
            <th style="width: 5%;">用户名</th>
            <th style="width: 10%;">企业名称</th>
            <th style="width: 5%;">法定代表人</th>
            <th style="width: 5%;">联系方式</th>
            <th style="width: 8%;">
                <div class="curse_list table_ulwrap">
                    <div class="titlist_wrap_tit_table my_clienttable">
                        <span class="operate_status_select" id="operate_status_name" value="1">营业状态</span>
                        <i class="icon-angle-down tittalecon"></i>
                    </div>
                    <ul class="table_ul my_select_ul" id="operate_status_ul">
                        <li value=""><a href="javascript:void(0);">全部</a></li>
                        <li value="0"><a href="javascript:void(0);">停业中</a></li>
                        <li value="1"><a href="javascript:void(0);">营业中</a></li>
                        <li value="2"><a href="javascript:void(0);">装修中</a></li>
                    </ul>
                </div>
            </th>
            <th style="width: 10%;">城市</th>
            <th style="width: 10%;">区县</th>
            <th style="width: 10%;">住所</th>
            <th style="width: 10%;">人均消费</th>
            <th style="width: 5%;" class="list_sort_tab" value="">提交时间
                <i class="icon_downs createcolor1 sortfildshiti"
                   tp="QuestionNum_Y" name="desc"></i>
            </th>
            <th style="width: 10%;">操作</th>
        </thead>
        <tbody id="biuuu_city_list">

        </tbody>
    </table>

    <!--页码 start-->
    <div class="bottom_page">
        <div class="my_client_b_l">
        </div>
        <div id="biuuu_city" style="margin: 2px auto;text-align: center;">
            <div style="float: right;padding:7px 20px;" id="bottom">
                <div class="select_wrap select_w" onselectstart="return false">
                    <div style="float: left;">
                                <span class="bottom_left_tit">
                                    共 <span id="totalSize">0</span> 行
                                          每页显示行:
                                      </span>
                        <span style="float: left;" class="select_span1">
                                    <span id="selectPageSize">
                                        <span id="selectPageSize1">10</span>
                                        <i class="icon-angle-up"></i>
                                    </span>
                                    <ul class="select_ul2" id="select_page_ul" onclick="this.style.display='none'">
                                        <li>10</li>
                                        <li>20</li>
                                        <li>30</li>
                                        <li>50</li>
                                        <li>100</li>
                                    </ul>
                                </span>

                    </div>
                    <div style="float: left;margin-left: 5px" id="site">
                        <button id="first_button" onclick="changeCurrentPage('first')">
                            <i class="icon-double-angle-left"></i>
                        </button>
                        <button id="last_button" onclick="changeCurrentPage('last');">
                            <i class="icon-angle-left"></i></button>
                        <div class="page_numdiv">
                            <span id="currentPage">1</span>/<span id="totalPage">1</span>
                        </div>
                        <button id="next_button" onclick="changeCurrentPage('next');">
                            <i class="icon-angle-right"></i></button>
                        <button id="end_button" onclick="changeCurrentPage('end')">
                            <i class="icon-double-angle-right"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--页码 end-->

</div>


<!--升级为商家弹框-->
<div id="MerchantupgradeWin" style="display: none;width: 1000px;"
     class="popup_wrap nre_alert linepopup layui-layer-wrap">
    <div class="popup_tit"></div>
    <div style=" max-height: 380px;overflow-y: auto;padding: 10px 0px;">
        <div class="titBottom_w titBottom_s">
            <!--升级商家的用户加密id-->
            <input id="upgrade_user_encryptId" type="hidden">

            <div class="status_">
                <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                    <ul class="layui-tab-title realtime_tab">
                        <li value="1" class="layui-this">农家乐商家</li>
                    </ul>

                    <div class="layui-tab-content">
                        <!--农家乐 商家-->
                        <div class="layui-tab-item layui-show">
                            <div class="x-body">

                                <div class="layui-form">

                                    <div class="basic_infor">
                                        <p>
                                            <span class="sp1">（农家乐）基本信息认证</span>
                                            <span class="sp2">(<i class="i1">*</i>此类信息为必填项)</span>
                                        </p>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">企业名称</label>
                                        <div class="layui-input-inline">
                                            <input type="text" autocomplete="off" id="farm_business_name"
                                                   class="layui-input" style="width: 345px;">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">统一社会信用码
                                        </label>
                                        <div class="layui-input-inline">
                                            <input type="text" autocomplete="off" id="farm_business_code"
                                                   class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">营业执照
                                        </label>
                                        <div class="uploadPicture_div lincensefile">
                                            <input name="file" type="file" id="farm_license_file" class="file_input"
                                                   style="display: none;">
                                            <input class="file_url" id="farm_license_url" type="text"
                                                   style="width: 105px">
                                            <a class="xinjian_btn" style="margin-top: 9px;margin-left: 10px;"
                                               onclick="$(this).siblings('.file_input').click()"
                                               href="javascript:void(0)">
                                                上&nbsp;传
                                            </a>
                                            <div style="clear: both;"></div>
                                            <label class="layui-form-label"> </label>
                                            <img id="farm_license_img" class="upload_img_show">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">法定代表人</label>
                                        <div class="layui-input-inline">
                                            <input type="text" autocomplete="off" id="farm_Legalperson"
                                                   class="layui-input upgrade_Legalperson">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">联系方式</label>
                                        <div class="layui-input-inline">
                                            <input type="tel" id="farm_tel" value=""
                                                   maxlength="11" class="layui-input upgrade_tel">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">成立日期</label>
                                        <div class="layui-input-inline">
                                            <input class="layui-input" placeholder="成立日期"
                                                   id="farm_start">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">商户类型</label>
                                        <div class="layui-input-inline">
                                            <input type="text" value="农家乐" data="1" readonly="readonly"
                                                   autocomplete="off" id="farm_Mertype_name" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">农家类型</label>
                                        <div class="layui-input-inline">
                                            <select name="farm_Mertype" id="farm_Mertype">
                                            </select>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">经营面积</label>
                                        <div class="layui-input-inline">
                                            <select name="farm_mianji" id="farm_mianji">
                                                <option value="50">50平米以下</option>
                                                <option value="100">50-100平米</option>
                                                <option value="150">100-150平米</option>
                                                <option selected="selected" value="200">150-200平米</option>
                                                <option value="250">200-250平米</option>
                                                <option value="300">250-300平米</option>
                                                <option value="350">300-350平米</option>
                                                <option value="400">350-400平米</option>
                                                <option value="450">400-450平米</option>
                                                <option value="500">450-500平米</option>
                                                <option value="600">500平米以上</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">用餐接待</label>
                                            <div class="layui-input-inline">
                                                <select name="farm_capacity" id="farm_capacity">
                                                    <option value="10">10人以下</option>
                                                    <option value="20">10-20人</option>
                                                    <option value="30">20-30人</option>
                                                    <option value="40">30-40人</option>
                                                    <option value="50">40-50人</option>
                                                    <option value="60">50-60人</option>
                                                    <option value="70">60-70人</option>
                                                    <option value="80">70-80人</option>
                                                    <option value="90">80-90人</option>
                                                    <option value="100">90-100人</option>
                                                    <option value="110">100人以上</option>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="layui-inline">
                                            <label class="layui-form-label">住宿容纳</label>
                                            <div class="layui-input-inline">
                                                <select name="farm_room" id="farm_room">
                                                    <option value="10">10人以下</option>
                                                    <option value="20">10-20人</option>
                                                    <option value="30">20-30人</option>
                                                    <option value="40">30-40人</option>
                                                    <option value="50">40-50人</option>
                                                    <option value="60">50-60人</option>
                                                    <option value="70">60-70人</option>
                                                    <option value="80">70-80人</option>
                                                    <option value="90">80-90人</option>
                                                    <option value="100">90-100人</option>
                                                    <option value="110">100人以上</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">商铺规模</label>
                                            <div class="layui-input-inline">
                                                <select name="farm_merch_scale" id="farm_merch_scale">
                                                    <option value="10">10间以下</option>
                                                    <option value="15">10-15间房</option>
                                                    <option value="20">15-20间房</option>
                                                    <option value="25">20-25间房</option>
                                                    <option value="30">25-30间房</option>
                                                    <option value="35">30-35间房</option>
                                                    <option value="40">35-40间房</option>
                                                    <option value="45">40-45间房</option>
                                                    <option value="50">45-50间房</option>
                                                    <option value="60">50间以上</option>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="layui-inline">
                                            <label class="layui-form-label">人均消费</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="pre_consumption"
                                                       id="farm_pre_consumption" class="layui-input"
                                                       value="">
                                            </div>
                                            <div class="layui-form-mid layui-word-aux">
                                                元起
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-row">
                                        <div class="layui-form layui-col-md12  layui-form-pane">
                                            <div class="layui-form-item city_name" id="farm_city_name">
                                                <label class="layui-form-label" style="border: 0px;">所属城市</label>
                                                <div class="layui-input-inline">
                                                    <select name="province" lay-filter="province" id="farm_province">
                                                        <option value="">请选择省</option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-inline">
                                                    <select name="city" lay-filter="city" id="farm_city">
                                                        <option value="">请选择市</option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-inline">
                                                    <select name="area" lay-filter="area" id="farm_area">
                                                        <option value="">请选择县/区</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">住所</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="principal_address"
                                                   id="farm_address" value=""
                                                   class="layui-input" style="width: 345px;">
                                        </div>
                                    </div>

                                </div>

                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="linepopup_div"></div>
    <div class="d_btn">
        <div class="linepopup_button">
            <a class="Save_s" onclick="addMerchantSave()" href="javascript:void(0)">确定</a> <a
                href="javascript:mclose()" class="sure_btn1" style="margin-right: 15px;">取消</a>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(function() {
        layui.use(['laydate', 'layer', 'layedit', 'element'], function() {
            $ = layui.jquery;
            var layedit = layui.layedit,
                laydate = layui.laydate,
                element = layui.element;

            //创建一个编辑器
            editIndex = layedit.build('L_content');

            //执行一个laydate实例
            laydate.render({
                elem: '#farm_start', //指定元素
                type: 'date'
            });

        })

    });
</script>

<script type="text/javascript">
    layui.use(['form', 'code'], function() {
        form = layui.form;

        layui.code();

        $('.city_name').xcity('重庆', '市', '永川市');

    });
</script>



</body>
</html>